const oracledb = require('oracledb');


const config = {
    user: 'omcs',
    password: 'omcs_2018',
    connectString: '192.168.1.9:1521/orcl',
};

oracledb.getConnection(config, (err, connection) => {
    if (err) {
        return console.error(err);
    }
    connection.execute('SELECT TABLE_NAME,COMMENTS FROM USER_TAB_COMMENTS', (err, result) => {
        if (err) {
            return console.error(err);
        }
        console.log(result)
    });
});
